package oop2;

/**
 * @author oldliu
 * @since 1.0
 */
public class Arr1 {
    public static void main(String[] args) {
//        int []ar=new int[20];
//        System.out.println(ar[3]);
        Student s[]=new Student[10];
        System.out.println(s.length);
//        for(Student s1:s)
//            System.out.println(s1);
        //s[0].show();
        s[0]=new Student();
        s[0].name="印纹龙";
        s[0].java=88;
        s[0].c=78;
        s[1]=new Student();
        s[1].name="高于要";
        s[1].java=99;
        s[1].c=91;
        s[2]=new Student();
        s[2].name="赵军街";
        s[0].show();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>");
        Student []s2={new Student(),new Student(),new Student(),new Student()};
        s2[0].name="杨煦";
        s2[0].java=699;
        s2[0].c=99;
        for (int i = 0; i < s2.length; i++) {
            s2[i].show();
        }
    }
}
